import React, { Component } from 'react';
import 'core-js';
import './App.css';
import {config} from "./config";

import {Route,BrowserRouter as Router,Switch} from 'react-router-dom';
import StorageManage from './views/storageManage';
import Login from './views/login';
import Delivery from './views/delivery';
import OutPutManage from './views/outPutManage';


class App extends Component {
  render() {
    return (
      <Router>
          <Switch>
              <Route path={config.path+"/storageManage/:id"} component={StorageManage} />
              <Route path={config.path+"/outPutManage/:id"} component={OutPutManage} />
              <Route path={config.path+"/login"} component={Login} />
              <Route path={config.path+"/delivery/:id"} component={Delivery} />
              <Route component={Login} />
          </Switch>
      </Router>
    );
  }
}

export default App;
